private class ChannelSendOperator.WriteCompletionBarrier
extends java.lang.Object
The completionSubscriber is subscribed initially to the WriteBarrier. Later after the first signal is received, we need one more subscriber instance (per spec can only subscribe once) to subscribe to the write function and switch to delegating completion signals from it.
Modifier and Type | Field and Description |
---|---|
private <any> |
completionSubscriber |
private ChannelSendOperator.WriteBarrier |
writeBarrier |
Constructor and Description |
---|
WriteCompletionBarrier(<any> subscriber,
ChannelSendOperator.WriteBarrier writeBarrier) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
connect()
Connect the underlying completion subscriber to this barrier in order
to track cancel signals and pass them on to the write barrier.
|
Context |
currentContext() |
void |
onComplete() |
void |
onError(java.lang.Throwable ex) |
void |
onNext(java.lang.Void aVoid) |
void |
onSubscribe(Subscription subscription) |
void |
request(long n) |
private final <any> completionSubscriber
private final ChannelSendOperator.WriteBarrier writeBarrier
public WriteCompletionBarrier(<any> subscriber, ChannelSendOperator.WriteBarrier writeBarrier)
public void connect()
public void onSubscribe(Subscription subscription)
public void onNext(java.lang.Void aVoid)
public void onError(java.lang.Throwable ex)
public void onComplete()
public Context currentContext()
public void request(long n)
public void cancel()